package com.wi.demo;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Component
@Scope("session")
public class User {

	public User() {
		super();
	}

	public boolean isLoggedin() {
		return loggedin;
	}

	public void setLoggedin(boolean loggedin) {
		this.loggedin = loggedin;
	}

	private boolean loggedin;

	public User(String username, String password, String uuid, boolean loggedin) {
		super();
		this.username = username;
		this.password = password;
		this.uuid = uuid;
		this.loggedin = loggedin;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getUuid() {
		return uuid;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}

	private String username = "";
	private String password = "";
	private String uuid = "";
	private boolean alreadyLoggedIn=false;
	

	public boolean isAlreadyLoggedIn() {
		return alreadyLoggedIn;
	}

	public void setAlreadyLoggedIn(boolean alreadyLoggedIn) {
		this.alreadyLoggedIn = alreadyLoggedIn;
	}

	@Override
	public String toString() {
		return "User [loggedin=" + loggedin + ", username=" + username
				+ ", password=" + password + ", uuid=" + uuid + "]";
	}

}
